package com.oocl.tm.protocol;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class MsgPackage implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Operation operation;
	private String sender;
	private String receiver;
	private String content;
	private Date date;
	private HashMap<String, Boolean>onlineMap;
	
	public Operation getOperation() {
		return operation;
	}
	public void setOperation(Operation operation) {
		this.operation = operation;
	}
	public String getSender() {
		return sender;
	}
	public void setSender(String sender) {
		this.sender = sender;
	}
	public String getReceiver() {
		return receiver;
	}
	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public HashMap<String, Boolean> getOnlineMap() {
		return onlineMap;
	}
	public void setOnlineMap(HashMap<String, Boolean> onlineMap) {
		this.onlineMap = (HashMap<String, Boolean>) onlineMap;
	}
	public MsgPackage(Operation operation, String sender, String receiver,
			String content, Date date, HashMap<String, Boolean> onlineMap) {
		super();
		this.operation = operation;
		this.sender = sender;
		this.receiver = receiver;
		this.content = content;
		this.date = date;
		this.onlineMap = onlineMap;
	}
	public MsgPackage() {
		super();
	}
	
	
	@Override
	public String toString() {
		return "MsgPackage [operation=" + operation + ", sender=" + sender + ", receiver=" + receiver + ", content=" + content + ", date=" + date + ", onlineMap=" + onlineMap + "]";
	}
	
	
}